/*
 * @Author: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @Date: 2024-02-02 12:06:13
 * @LastEditors: thats-all-right-ha-ha 8280209+thats-all-right-ha-ha@user.noreply.gitee.com
 * @LastEditTime: 2024-02-02 21:13:40
 * @FilePath: \vue-test\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import VueRouter from 'vue-router'
import Vue from 'vue'
Vue.use(VueRouter);
import Layout from '@/views/Layout'
import ArticleDetail from '@/views/ArticleDetail'
import Collect from '@/views/Collect'
import Article from '@/views/Article'
import Like from '@/views/Like'
import User from '@/views/User'
const router = new VueRouter({
    routes: [
        {
            path: '/',
            component: Layout,
            redirect:'/article',
            children: [
                { path: '/collect', component: Collect },
                { path: '/article/', component: Article },
                { path: '/like', component: Like },
                { path: '/user', component: User }
            ]
        },
        { path: "/detail/:word?", component: ArticleDetail }
    ],
    linkActiveClass:'active'
});
export default router